import request from '@/utils/request'

// 查询客户统计
export function getCustomerStatistics(query) {
  return request({
    url: '/crm/statistics/getCustomerStatistics',
    method: 'get',
    params: query
  })
}
 
export function exportCustomer(query) {
  return request({
    url: '/crm/statistics/exportCustomer',
    method: 'get',
    params: query
  })
}

export function getFullCustomerStatistics(query) {
  return request({
    url: '/crm/statistics/getFullCustomerStatistics',
    method: 'get',
    params: query
  })
}
 
export function exportFullCustomer(query) {
  return request({
    url: '/crm/statistics/exportFullCustomer',
    method: 'get',
    params: query
  })
}


export function getCustomerVisitStatistics(query) {
  return request({
    url: '/crm/statistics/getCustomerVisitStatistics',
    method: 'get',
    params: query
  })
}
 
export function exportCustomerVisit(query) {
  return request({
    url: '/crm/statistics/exportCustomerVisit',
    method: 'get',
    params: query
  })
}

export function getContractStatistics(query) {
  return request({
    url: '/crm/statistics/getContractStatistics',
    method: 'get',
    params: query
  })
}
 
export function exportContract(query) {
  return request({
    url: '/crm/statistics/exportContract',
    method: 'get',
    params: query
  })
}

export function getProductStatistics(query) {
  return request({
    url: '/crm/statistics/getProductStatistics',
    method: 'get',
    params: query
  })
}
export function exportProduct(query) {
  return request({
    url: '/crm/statistics/exportProduct',
    method: 'get',
    params: query
  })
}


export function getCustomerProductStatistics(query) {
  return request({
    url: '/crm/statistics/getCustomerProductStatistics',
    method: 'get',
    params: query
  })
}
export function exportCustomerProduct(query) {
  return request({
    url: '/crm/statistics/exportCustomerProduct',
    method: 'get',
    params: query
  })
}

 